//
//  GHNavigationController.swift
//  GHWeibo
//
//  Created by LGH on 2017/8/3.
//  Copyright © 2017年 LGH. All rights reserved.
//

import UIKit

class GHNavigationController: UINavigationController {


    override func viewDidLoad() {
        
        self.navigationBar.barTintColor = UIColor(colorLiteralRed: 0.98, green: 0.98, blue: 0.98, alpha: 1)
//        self.navigationBar.isTranslucent = false
//        self.extendedLayoutIncludesOpaqueBars = true
//        self.edgesForExtendedLayout = .all
        
    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        
        
        if childViewControllers.count > 0 {
            
            viewController.hidesBottomBarWhenPushed = true
            
        }

        super.pushViewController(viewController, animated: animated)

    }
    
}
